package cn.fan.testfunction.model;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class JcjcDefectInfoDefectRectAttr implements Serializable {
    @NotNull(
        message = "矩形高度 不能为空"
    )
   //("矩形高度")
    private Integer height;
    @NotNull(
        message = "矩形宽度 不能为空"
    )
   //("矩形宽度")
    private Integer width;
    @NotNull(
        message = "图片高度 不能为空"
    )
   //("图片高度")
    private Integer picHeight;
    @NotNull(
        message = "图片宽度 不能为空"
    )
   //("图片宽度")
    private Integer picWidth;
    @NotNull(
        message = "x坐标点 不能为空"
    )
   //("x坐标点")
    private Integer x;
    @NotNull(
        message = "y坐标点 不能为空"
    )
   //("y坐标点")
    private Integer y;

    public JcjcDefectInfoDefectRectAttr() {
    }

    public Integer getHeight() {
        return this.height;
    }

    public Integer getWidth() {
        return this.width;
    }

    public Integer getPicHeight() {
        return this.picHeight;
    }

    public Integer getPicWidth() {
        return this.picWidth;
    }

    public Integer getX() {
        return this.x;
    }

    public Integer getY() {
        return this.y;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public void setPicHeight(Integer picHeight) {
        this.picHeight = picHeight;
    }

    public void setPicWidth(Integer picWidth) {
        this.picWidth = picWidth;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof JcjcDefectInfoDefectRectAttr)) {
            return false;
        } else {
            JcjcDefectInfoDefectRectAttr other = (JcjcDefectInfoDefectRectAttr)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$height = this.getHeight();
                Object other$height = other.getHeight();
                if (this$height == null) {
                    if (other$height != null) {
                        return false;
                    }
                } else if (!this$height.equals(other$height)) {
                    return false;
                }

                Object this$width = this.getWidth();
                Object other$width = other.getWidth();
                if (this$width == null) {
                    if (other$width != null) {
                        return false;
                    }
                } else if (!this$width.equals(other$width)) {
                    return false;
                }

                Object this$picHeight = this.getPicHeight();
                Object other$picHeight = other.getPicHeight();
                if (this$picHeight == null) {
                    if (other$picHeight != null) {
                        return false;
                    }
                } else if (!this$picHeight.equals(other$picHeight)) {
                    return false;
                }

                label62: {
                    Object this$picWidth = this.getPicWidth();
                    Object other$picWidth = other.getPicWidth();
                    if (this$picWidth == null) {
                        if (other$picWidth == null) {
                            break label62;
                        }
                    } else if (this$picWidth.equals(other$picWidth)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$x = this.getX();
                    Object other$x = other.getX();
                    if (this$x == null) {
                        if (other$x == null) {
                            break label55;
                        }
                    } else if (this$x.equals(other$x)) {
                        break label55;
                    }

                    return false;
                }

                Object this$y = this.getY();
                Object other$y = other.getY();
                if (this$y == null) {
                    if (other$y != null) {
                        return false;
                    }
                } else if (!this$y.equals(other$y)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof JcjcDefectInfoDefectRectAttr;
    }

//    public int hashCode() {
//        int PRIME = true;
//        int result = 1;
//        Object $height = this.getHeight();
//        int result = result * 59 + ($height == null ? 43 : $height.hashCode());
//        Object $width = this.getWidth();
//        result = result * 59 + ($width == null ? 43 : $width.hashCode());
//        Object $picHeight = this.getPicHeight();
//        result = result * 59 + ($picHeight == null ? 43 : $picHeight.hashCode());
//        Object $picWidth = this.getPicWidth();
//        result = result * 59 + ($picWidth == null ? 43 : $picWidth.hashCode());
//        Object $x = this.getX();
//        result = result * 59 + ($x == null ? 43 : $x.hashCode());
//        Object $y = this.getY();
//        result = result * 59 + ($y == null ? 43 : $y.hashCode());
//        return result;
//    }

    public String toString() {
        return "JcjcDefectInfoDefectRectAttr(height=" + this.getHeight() + ", width=" + this.getWidth() + ", picHeight=" + this.getPicHeight() + ", picWidth=" + this.getPicWidth() + ", x=" + this.getX() + ", y=" + this.getY() + ")";
    }
}
